package com.hungryant.website.home;

import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by sunlin05 on 2014/10/3.
 */
@Controller
@Api(value = "主页")
public class HomeController {
    Logger logger = LoggerFactory.getLogger(getClass());

    @RequestMapping(value = "/welcome", method = RequestMethod.GET)
    @ApiOperation(
            value = "欢迎方法", notes = "欢迎界面", position = 10)
    public String welcome() {
        return "home/welcome";
    }

    @RequestMapping(value = "/home", method = RequestMethod.GET)
    @ApiOperation(
            value = "主页", notes = "主页", position = 10)
    public String home() {
        return "home/anthome";
    }
}
